function [ distance ] = distl2( A, B )
%L2DIST Euclidean distance between each row of 2 column vector of pixels
% Input Parameters
%
% A - n x 2 vector of pixel subscripts (each row is a pixel location)
% B - n x 2 column vector of pixel subscripts (each row is a pixel
% location)
%
% reutrns - n x1 column vector of distances between corresponding rows of
% the two matrices. 
    
    length = size(A,1);

    distance = zeros(length,1);
    for i = 1:length
        distance(i) = sqrt( ( B(i,2)- A(i,2) )^2 + ( B(i,1) - A(i,1))^2);
    end

end

